package cn.com.surker.lab.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工控机消耗盘表,对应工控机的Piece
 * </p>
 *
 * @author admin
 * @since 2024-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LabExpendBatch extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 发货单ID
	 */
	private Long invoiceId;

	/**
	 * 生产线ID
	 */
	private Long lineId;

	/**
	 * 发货单的第几盘
	 */
	private Integer batchNum;

	/**
	 * 盘方量
	 */
	private Double batchStere;

	/**
	 * 盘记录时间
	 */
	private Date batchTime;

	/**
	 * 工控发货单号
	 * 其实可以不用,发货单号在发货单中关联了的,后面删了
	 */
	@Deprecated
	private String controlNo;

	/**
	 * 工控盘记录号
	 */
	private String conBatchId;

	/**
	 * 工控盘号(第几盘)
	 */
	private Integer conBatchNum;

	/**
	 * 工控下料类型(0:自动1:手动)
	 */
	private Integer type;


}
